// 接口扩展 接口可以继承接口
interface Animal {
  eat(): void
}
interface Person extends Animal {
  work(): void
}
class Web implements Person {
// class Web extends Programmer implements Person {
  public name: string;
  constructor(name: string) {
    this.name = name
  }
  eat() {
    console.log(this.name + '喜欢吃馒头')
  }
  work() {
    console.log(this.name + '写代码');
  }
}
var w = new Web('小李')
w.eat()

export {}
